package com.hr.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hr.mapper.TeacherUserMapper;
import com.hr.pojo.TeacherUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherUserServiceimpl implements TeacherUserServiceMapper {
    @Autowired
    private TeacherUserMapper userMapper;
    @Override
    public List<TeacherUser> findAll() {
        QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.ge("id",1);
        List<TeacherUser> list = userMapper.selectList(queryWrapper);
        return list;
    }
}
